/*
 * GPerm.java
 *
 * Created on Sep 27, 2007, 11:56:01 PM
 *
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.glossitope.container.security.permissions;

/**
 *
 * @author joshy
 */
public class GPerm {

    public String value;
    public String code;
    public String permType;
    private String description;

    public enum Type {

        ALLOW_PERM, DENY_PERM, ALLOW_TEMP
    }
    
    
    public Type type;
    

    public GPerm() {
    }

    public GPerm(String code, String value, Type type) {
        this.code = code;
        this.value = value;
        this.type = type;
    }

    public GPerm(String code, String permType, String value, Type type) {
        this.code = code;
        this.value = value;
        this.type = type;
        this.permType = permType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getPermType() {
        return permType;
    }

    public void setPermType(String permType) {
        this.permType = permType;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getDescription() {
        return this.description;
    }
    
    
}